package pojo;

public class Grade {
    private Integer gno;
    private String gname;
    private String gdesc;
    private Teacher teacher;

    public Grade() {
    }

    public Grade(Integer gno, String gname, String gdesc) {
        this.gno = gno;
        this.gname = gname;
        this.gdesc = gdesc;
    }

    public Grade(Integer gno, String gname, String gdesc, Teacher teacher) {
        this.gno = gno;
        this.gname = gname;
        this.gdesc = gdesc;
        this.teacher = teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public Integer getGno() {
        return gno;
    }

    public void setGno(Integer gno) {
        this.gno = gno;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public String getGdesc() {
        return gdesc;
    }

    public void setGdesc(String gdesc) {
        this.gdesc = gdesc;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "gno=" + gno +
                ", gname='" + gname + '\'' +
                ", gdesc='" + gdesc + '\'' +
                ", teacher=" + teacher +
                '}';
    }
}
